libxl: fix build with glibc < 2.9
authorJan Beulich <jbeulich@suse.com>
Wed, 22 Jul 2015 12:15:12 +0000 (14:15 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Jul 2015 12:15:12 +0000 (14:15 +0200)
commit23d72aaa0ccb206b0447b1efa9f1012f093162ee
treee0d01adc66f8e19240fb6b12268f7eb7b7caa88f
parent7c60c2da3160766a265cb84c7411ff2c9cbd8d0b
libxl: fix build with glibc < 2.9

htobe*() and be*toh() don't exist there. While replacing the 32-bit
ones with hton() and ntoh() would be possible, there wouldn't be an
obvious replacement for the 64-bit ones. Hence just take what current
glibc (2.21) has (assuming __bswap_*() exists, which it does back to
at least 2.4 according to my checking).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_osdeps.h